<?php

namespace app\order\model;

use think\Model;
use think\Db;

class OrderConsignee extends Model
{
    // 设置当前模型对应的完整数据表名称
    protected $table = 'xb_order_consignee';

    // 订单收货人
    public function getConsignee($order_id)
    {
        $order_id = intval($order_id);

        if($order_id==0) return false;

        return $this->where('order_id='.$order_id)->find();
    }
}